#ifndef LOADING_THREAD_H
#define LOADING_THREAD_H
#include <QThread>
#include "qmobex.h"

class LoadingThread : public QThread{
    Q_OBJECT
public:
        LoadingThread(MObex &phoneDevice);

    void setData( vCardHash &contacts, QByteArray from);

public slots:
    void load();
signals:
    void parsed(int);
    void contactsCount(int);

private:
    int contactsNumber;
    vCardHash contactsTable;//Contact ID, and vCard
    QByteArray loadingSource;//Phone or Sim
    MObex phone;
protected:
    void run();
};


#endif // LOADING_THREAD_H
